package com.ranjiaqi.map;

import java.util.Properties;

/**
 * @ClassName TestProperties
 * @Description TODO
 * @Author hp
 * @Date 2021/6/25 15:25
 * @Version 1.0
 **/
public class TestProperties {
    public static void main(String[] args) {
        setProperties();
        getProperties();
    }
    public static void setProperties(){
        Properties properties = new Properties();
        properties.setProperty("A","1");
        properties.setProperty("B","1");
        properties.setProperty("C","1");
        properties.setProperty("D","1");
        properties.setProperty("E","1");
        properties.setProperty("E","1");
        System.out.println("properties = " + properties);
    }

    public static void getProperties(){
        Properties properties = new Properties();
        properties.setProperty("A","1");
        properties.setProperty("B","1");
        properties.setProperty("C","1");
        properties.setProperty("D","1");
        properties.setProperty("E","1");
        properties.setProperty("E","1");
        System.out.println("properties.getProperty(A) = " + properties.getProperty("A"));
    }
}
